import Taro from "@tarojs/taro";

export function showModal(_options: Taro.showModal.Option){
  const options = {
    ..._options,
    showCancel: _options.showCancel ?? true,
    cancelText: _options.cancelText ?? '取消',
    confirmText: _options.confirmText ?? '确定',
  }
  return Taro.showModal(options);
}
